import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import uniHot from 'uni-pages-hot-modules'
uniHot.setupHotJs()

export default defineConfig({
  plugins: [
    uni(),
    uniHot.createHotVitePlugin(),
  ],
  server: {
    hot: true,
    open: false,
    port: 8080
  }
})